package com.ck.task.xxljob;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author ck
 * @date 2024/3/20 14:41
 */
@Component
@Slf4j
public class BeanMethodJobHandler  {

    @XxlJob(value = "beanMethodJobHandler")
    public ReturnT<String> beanMethodJobHandler() {
        XxlJobHelper.log("bean method jobHandler running...");
        log.info("bean method jobHandler running...");
        return ReturnT.SUCCESS;
    }

}
